Skip to content

Change enum->int casts to not go through MIR casts.#96862

Merged
bors merged 4 commits intorust-lang:masterfrom
oli-obk:enum_cast_mir
Jul 5, 2022
Merged

Change enum->int casts to not go through MIR casts.#96862
bors merged 4 commits intorust-lang:masterfrom
oli-obk:enum_cast_mir

Conversation

@oli-obk
Copy link
Copy Markdown
Contributor

@oli-obk oli-obk commented May 9, 2022

follow-up to #96814

this simplifies all backends and even gives LLVM more information about the return value of Rvalue::Discriminant, enabling optimizations in more cases.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-lang Relevant to the language team

Projects

None yet

Development

Successfully merging this pull request may close these issues.